package com.sky.mapper;

import com.sky.dto.OrdersSubmitDTO;
import com.sky.po.OrderDetailPO;
import com.sky.po.OrdersPO;
import com.sky.po.ShoppingCartPO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Content:
 * @Author: Asen
 * @Date: 2023/9/1 14:22
 */
@Mapper
public interface ShoppingCartMapper {
    ShoppingCartMapper INSTANCE = Mappers.getMapper(ShoppingCartMapper.class);

    OrderDetailPO POConvertDetail(ShoppingCartPO source);

    List<OrderDetailPO> ListPOConvertDetail(List<ShoppingCartPO> source);
}
